from django.db import models


class CashierAdmins(models.Model):
    shop_id = models.PositiveIntegerField()
    job_num = models.PositiveIntegerField()
    username = models.CharField(unique=True, max_length=20)
    salt = models.CharField(unique=True, max_length=8)
    password = models.CharField(max_length=32)
    token = models.CharField(max_length=200)
    avatar = models.CharField(default='', blank=True, max_length=200)
    tel = models.CharField(default='', blank=True, max_length=20)
    ip = models.CharField(max_length=15)
    status = models.IntegerField(default=0)
    ver = models.IntegerField(default=0)
    created = models.PositiveIntegerField()
    updated = models.PositiveIntegerField()
    deleted = models.PositiveIntegerField(default=0)

    class Meta:
        managed = False
        db_table = 'cashier_admins'
